<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>交易记录</title>
    <link rel="stylesheet" href="https://www.jq22.com/jquery/bootstrap-4.2.1.css">
    <link href="http://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
    <link href="http://cdn.bootcss.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
    <link rel="stylesheet" type="text/css" href="../static/css/htmleaf-demo.css">
    <link rel="stylesheet" href="../static/css/jquery.mCustomScrollbar.min.css" />
    <link rel="stylesheet" href="../static/css/custom.css">
    <style>
        .content1 {
            width: 800px;
            height: 400px;

            display: inline-block;
            margin-top: 50px;
            margin-left: 350px;
        }
        #lin {
            margin: 20px 0;
            height: 30px;
            padding: 5px;
            box-sizing: border-box;
        }
        .table-hover>tbody>tr:hover {
            background-color: #00ffff!important;
        }
    </style>
</head>

<body>



<div class="content1" >
    <!-- <input type="text" id="lin" placeholder="请输入需要搜索的内容"> -->
    <input type="text" class="form-control names" id="lin" placeholder="请输入需要搜索的内容">



    <table class="table table-hover table-bordered" id="table-1" style="color: #000000;">
        <thead >
        <tr>
            <th>订单号</th>
            <th>交易人</th>
            <th>车位信息</th>
            <th>交易金额</th>
            <th>支付方式</th>
            <th>备注</th>
            <th>交易时间</th>
        </tr>
        </thead>
        <tbody>
        <tr  th:each="exvale : ${list}">
            <td th:text="${exvale.getOrderNumber()}"></td>
            <td th:text="${exvale.getTrader()}"></td>
            <td th:text="${exvale.getTruckSpace()}"></td>
            <th th:text="${exvale.getMoney()}"></th>
            <td th:text="${exvale.getPayType()}"></td>
            <th th:text="${exvale.getDatailedIM()}"></th>
            <th th:text="${exvale.getTime()}"></th>
        </tr>
        </tbody>
    </table>
</div>
<div class="page-wrapper">
    <nav id="sidebar" class="sidebar-wrapper">
        <div class="sidebar-content">
            <a href="#" id="toggle-sidebar"><i class="fa fa-bars"></i></a>
            <div class="sidebar-brand">
                <a href="#">pro sidebar</a>
            </div>

            <div class="sidebar-menu">
                <ul>
                    <li class="header-menu"><span>Dropdown  menu</span></li>
                    <li class="sidebar-dropdown">
                        <a  href="#" ><i class="fa fa-tv"></i><span>Menu 1</span><span class="label label-danger">New</span></a>
                        <div class="sidebar-submenu">
                            <ul>
                                <li><a href="#">submenu 1 <span class="label label-success">10</span></a> </li>
                                <li><a href="#">submenu 2</a></li>
                                <li><a href="#">submenu 3</a></li>
                                <li><a href="#">submenu 4</a></li>
                            </ul>
                        </div>
                    </li>


                    <li class="header-menu"><span>Simple menu</span></li>
                    <li><a href="#"><i class="fa fa-tv"></i><span>Menu 1</span></a></li>
                    <li><a href="#"><i class="fa fa-photo"></i><span>Menu 2</span></a></li>
                    <li><a href="#"><i class="fa fa-bar-chart-o"></i><span>Menu 3</span></a></li>
                    <li><a href="/showTradeIM"><i class="fa fa-diamond"></i><span>交易查询</span></a></li>
                </ul>
            </div><!-- sidebar-menu  -->
        </div><!-- sidebar-content  -->

        <div class="sidebar-footer">
            <a href="#"><i class="fa fa-bell"></i><span class="label label-warning notification">3</span></a>
            <a href="#"><i class="fa fa-envelope"></i><span class="label label-success notification">7</span></a>
            <a href="#"><i class="fa fa-gear"></i></a>
            <a href="#"><i class="fa fa-power-off"></i></a>
        </div>
    </nav><!-- sidebar-wrapper  -->

    <!-- 这里写页面内容 -->
    <main class="page-content">

    </main><!-- page-content" -->
</div><!-- page-wrapper -->



<script src="http://cdn.bootcss.com/jquery/1.11.0/jquery.min.js" type="text/javascript"></script>
<script>window.jQuery || document.write('<script src="js/jquery-1.11.0.min.js"><\/script>')</script>
<script src="http://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script src="../static/js/jquery.mCustomScrollbar.concat.min.js"></script>
<script src="../static/js/custom.js"></script>
<script src="https://www.jq22.com/jquery/jquery-1.10.2.js"></script>
<script src="https://www.jq22.com/jquery/bootstrap-4.2.1.js"></script>
<script src="../static/js/lin_search.js"></script>
<script>
    //模糊搜索
    $("#lin").on('keyup', function () {
        var table1 = $("#table-1");
        var input = $(this);
        new Search(table1, input,)

    })
    //下拉框
    $('#select').on('change', function () {
        var content = $('#select') // 下拉框
        var table2 = $('#table-1')
        new Search(table2, content, '#6332f6')
    })

    $('#type').on('change', function () {
        var content = $('#type') // 下拉框
        var table2 = $('#table-1')
        new Search(table2, content, '#6332f6')
    })
</script>
</body>

</html>